home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20000824-20010305
/
000083_news@columbia.edu _Sun Oct 22 14:39:49 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id OAA13888
for <kermit.misc@cpunix.cc.columbia.edu>; Sun, 22 Oct 2000 14:39:48 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA00306
for <kermit.misc@watsun.cc.columbia.edu>; Sun, 22 Oct 2000 14:39:48 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id OAA01505
for kermit.misc@watsun.cc.columbia.edu; Sun, 22 Oct 2000 14:25:42 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: ckermit: keep alive
Date: 22 Oct 2000 18:25:39 GMT
Organization: Columbia University
Message-ID: <8svbf3$1eu$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <AVFI5.1014$g71.42266@news3.voicenet.com>,
Christopher Mosley <cmosley@voicenet.com> wrote:
: Is there a way to keep a serial connection alive using ckermit.
: Is there a way to output characters when in the connect mode
: without running a backround process on the machine you are connected
: to...
:
K95 has a nice way of doing this since it runs in multiple threads
(something not practical for C-Kermit since threads are not portable
enough):
set terminal idle-send <sec> <string>
e.g. "set term idle 300 { }", which sends a space every 300 seconds if
you don't touch the keyboard.
: I can see using a backround process that periodically uses
: apc escape sequence to output a character, but I have used backround
: proccesses with "sleeps" before and my isp started looking at the files
: in my account - they thought it was indicative of a ping attack and
: generally suspicious.
:
: Is my only real option to run a script from the command line?
:
If you're trying to prevent the situation in which you leave C-Kermit in
CONNECT mode and walk away for half an hour, and the host logs you out
because of idle time, C-Kermit can help you if you remember to escape back
from CONNECT mode before walking away and running a little script like:
define BUSYWAIT {
echo Press any key to continue...
set ask-timer 2
while true {
for \%i 1 15 1 {
getc \%c
if success {
set ask-timer 0
echo Continuing...
end 0
}
}
output \N
}
}
This sends a NUL (which should be harmless) every 30 seconds until you press
a key (there might be up to a 2-second delay after you press key before it
responds). Take this one step further by putting the definition in your
C-Kermit customization file, where you would also:
define myconnect connect, busywait
and then use MYCONNECT instead of CONNECT to enter CONNECT mode. Then
whenever you escape back fronm CONNECT mode, it executes the BUSYWAIT macro
automatically.
- Frank